//
//  ZLDemoViewController.swift
//  ZLWeibo
//
//  Created by zhanglongtao on 16/12/15.
//  Copyright © 2016年 hanju001. All rights reserved.
//

import UIKit

class ZLDemoViewController: ZLBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }

    @objc fileprivate func showNext(){
        
        let vc = ZLDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
        
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

}

extension ZLDemoViewController{
    
    override func setupTableView() {
        
        super.setupTableView()
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontsize: 16, target: self, action: #selector(showNext))
        
    }
    
}
